<template>
  <!--工具条-->
  <div class="block">
    <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[10, 20, 50, 100]"
                   :page-size="limit" layout="total, sizes, prev, pager, next, jumper" :total="total">
    </el-pagination>
  </div>
</template>

<script>
  import API from '../../api/api_book';
  export default {
    data() {
      return {
        total: 0,
        currentPage:1,
        limit: 10,
        loading: false,
      }
    },
    methods: {
      handleCurrentChange(val) {
        this.currentPage = val;
        this.search();
      },
      handleSizeChange(val) {
        this.limit = val;
        this.search();
      }
    }
  }
</script>

<style scoped>

</style>
